package com.example.logger.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class LombokController {

    @RequestMapping("/getLombok")
    public String getLog() {
        log.trace("我是 trace");
        log.debug("我是 deBug");
        log.info("我是 info");
        log.warn("我是 warn");
        log.error("我是 error");

        return "hi lombok";
    }
}
